<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>homework1</title>
</head>
<body>
<pre>
     # -*- coding: utf-8 -*-
def main():
 with open('shoes.txt', 'r') as f:
 lines = f.readlines()
 result = []
 for line in lines:
 words = line.strip().split(" ")
 result.append({
 "brand": words[0],
 "color": "black",
 "size": words[-1]
 })
 print(result)
if __name__ == '__main__':
 main()
    </pre>
</body>
</html>